#include <stdio.h>
#include <common.c>

int main(int argc, char *argv[]) {
    float qual_diff_min = atof(argv[1]);
    float diff_sig_max = atof(argv[2]);

    while(!feof(stdin)) {
        unsigned int chr, pos;
        float value1, value2;
        char n[ALLELE_INFO_LEN], t[ALLELE_INFO_LEN];
        fscanf(stdin, "%u\t%u\t%f\t%f\t%s\t%s\n", &chr, &pos, &value1, &value2, n, t);
        if(value1 >= qual_diff_min && value2 <= diff_sig_max)
            fprintf(stdout, "%u\t%u\t%f\t%f\t%s\t%s\n", chr, pos, value1, value2, n, t);
    }
}
